package cn.stylefeng.guns.sys.modular.rest.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author huylei
 * @since 2022-05-18
 */
@TableName("bty_name_relation")
public class NameRelation implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 主键ID
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 门店编号（天财）
     */
    @TableField("shop_code")
    private String shopCode;

    /**
     * 门店名称（天财）
     */
    @TableField("shop_name")
    private String shopName;

    /**
     * 木瓜门店编码
     */
    @TableField("scm_code")
    private String scmCode;

    /**
     * 木瓜店名
     */
    @TableField("scm_name")
    private String scmName;
    /**
     * 店名类型：1 天财供应链 2 天财收银
     */
    @TableField("externalType")
    private int externalType;

    public NameRelation() {
    }

    public NameRelation(Integer id, String shopCode, String shopName, String scmCode, String scmName, int externalType) {
        this.id = id;
        this.shopCode = shopCode;
        this.shopName = shopName;
        this.scmCode = scmCode;
        this.scmName = scmName;
        this.externalType = externalType;
    }

    @Override
    public String toString() {
        return "NameRelation{" +
                "id=" + id +
                ", shopCode='" + shopCode + '\'' +
                ", shopName='" + shopName + '\'' +
                ", scmCode='" + scmCode + '\'' +
                ", scmName='" + scmName + '\'' +
                ", externalType=" + externalType +
                '}';
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public int getExternalType() {
        return externalType;
    }

    public void setExternalType(int externalType) {
        this.externalType = externalType;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getShopCode() {
        return shopCode;
    }

    public void setShopCode(String shopCode) {
        this.shopCode = shopCode;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getScmCode() {
        return scmCode;
    }

    public void setScmCode(String scmCode) {
        this.scmCode = scmCode;
    }

    public String getScmName() {
        return scmName;
    }

    public void setScmName(String scmName) {
        this.scmName = scmName;
    }

}
